package com.mtw.bbs.reply.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mtw.bbs.reply.pojo.dto.ReplyDto;
import com.mtw.bbs.reply.pojo.entity.ReplyIndex;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface ReplyIndexMapper extends BaseMapper<ReplyIndex> {




    /**
     * 分页获取dto
     *
     * @param page          分页对象
     * @param qw            查询条件
     * @return              分页结果
     */
    Page<ReplyDto> getDtoPage(IPage<ReplyDto> page, @Param(Constants.WRAPPER) QueryWrapper<ReplyIndex> qw);






}
